import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';


export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// todo
	const res = await nodejs<Array<{}>>('device-type/zj-000006/s001', {});
	render(fd, res, p001, 'p001', 'inner');
	//console.log('zj6a001', res);

	const a = fd.data.node.querySelector<HTMLDivElement>('[data-id="add"]');
	set_node_cls(a, 'display-n', false);
}
